appointments.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. body {
  2. font-family: 'Arial', sans-serif;
  3. background-color: #f4f4f9;
  4. margin: 0;
  5. padding: 0;
  6. display: flex;
  7. justify-content: center;
  8. align-items: center;
  9. height: 100vh;
  10. box-sizing: border-box;
  11. }
  12. .container {
  13. width: 90%;
  14. max-width: 1200px;
  15. background-color: #ffffff;
  16. padding: 20px;
  17. border-radius: 10px;
  18. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  19. overflow-x: auto; /* Ensure content is scrollable on smaller screens */
  20. }
  21. h2 {
  22. text-align: center;
  23. color: #333333;
  24. margin-bottom: 20px;
  25. }
  26. table {
  27. width: 100%;
  28. border-collapse: collapse;
  29. margin: 20px 0;
  30. font-size: 16px;
  31. color: #333333;
  32. }
  33. th, td {
  34. text-align: left;
  35. padding: 12px;
  36. border-bottom: 1px solid #dddddd;
  37. word-wrap: break-word; /* Prevent text from overflowing */
  38. }
  39. th {
  40. background-color: #0078d7;
  41. color: white;
  42. }
  43. tr:hover {
  44. background-color: #f1f1f1;
  45. }
  46. .time-span {
  47. font-weight: bold;
  48. color: #0078d7;
  49. }
  50. /* Responsive adjustments */
  51. @media (max-width: 768px) {
  52. body {
  53. height: auto;
  54. padding: 20px;
  55. }
  56. h2 {
  57. font-size: 1.5rem;
  58. }
  59. table {
  60. font-size: 14px;
  61. }
  62. th, td {
  63. padding: 10px;
  64. }
  65. }
  66. @media (max-width: 480px) {
  67. table {
  68. font-size: 12px;
  69. }
  70. th, td {
  71. padding: 8px;
  72. }
  73. th {
  74. font-size: 0.9rem;
  75. }
  76. }
  77. /* Ensure table stays scrollable on smaller screens */
  78. .container {
  79. overflow-x: auto;
  80. }