appointments.css 1.4 KB

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